package com.trs.zk.common.idgen;

import org.apache.shiro.session.Session;
import org.apache.shiro.session.mgt.eis.SessionIdGenerator;

import java.io.Serializable;

/**
 * @author msy
 * @date 2018/7/16 13:48
 */
public class IdGen extends IdGenerate implements SessionIdGenerator {
    /*-------------------------------------------
    |         C O N S T R U C T O R S            |
    ============================================*/
    public IdGen(){}

    /*--------------------------------------------
    |               M E T H O D S               |
    ============================================*/
    @Override
    public Serializable generateId(Session session) {
        return uuid();
    }
}
